home *** CD-ROM | disk | FTP | other *** search
/ Flash MX Savvy / FlashMX Savvy.iso / pc / WIN / UltraDev / UltraDev_Trial.exe / Disk1 / data1.cab / Configuration_En / Commands / layoutViewIntro.js < prev    next >
Encoding:
JavaScript  |  2000-12-11  |  884 b   |  29 lines

  1. // Copyright 2000 Macromedia, Inc. All rights reserved.
  2.  
  3. var PLATFORM = navigator.platform;
  4. var CTRL_STR = (PLATFORM == "Win32") ? "Ctrl" : "Cmd";
  5. var ICON_URL = (PLATFORM == "Win32") ? "../Shared/MM/Images/infoIconWin.gif" : "dwres:1";
  6. var helpDoc = MM.HELP_mnuLayoutViewIntro;
  7.  
  8. // Set up platform-specific items in the Layout View intro dialog.
  9. function initialize()
  10. {
  11.     // Set the text to say "Cmd" or "Ctrl" depending on whether we're on Mac or
  12.     // Windows.
  13.     document.span_CmdOrCtrl.innerHTML = CTRL_STR;
  14.  
  15.     // Use the right icon for the platform.
  16.     document.img_DialogIcon.src = ICON_URL;
  17. }
  18.  
  19. // Detect if the user checked the "Don't show me again" checkbox
  20. // when the user hits "OK".
  21. function onOK()
  22. {
  23.     if (document.cbForm.check_DontShowAgain.checked)
  24.     {
  25.         MM.LayoutViewIntro_DontShowAgain = true;
  26.     }
  27.     window.close();
  28. }
  29.